package com.chainyoung.component_tmtrade.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.appcommon.entity.UploadFile;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmtrade.bean.FiatOrder;
import com.chainyoung.component_tmtrade.bean.OrderDetail;

import java.util.TreeMap;

import io.reactivex.Flowable;
import okhttp3.RequestBody;

public interface TradeFiatCurrencyOrderDetailContract {

    interface View extends IView {

        void onGetOrderDetailSuccess(OrderDetail data);
        void onGetOrderDetailFailed();

        void onCancelOrderSuccess(String data);

        void onConfirmPayOrder(String data);

        void onConfirmRelease(String data);

        void onUploadPayImg(UploadFile data);


    }

    interface Model extends IModel {
        Flowable<OrderDetail> getOrderDetail(TreeMap<String, Object> map);


        Flowable<String> cancelOrder(TreeMap<String, Object> map);


        Flowable<String> confirmPayOrder(TreeMap<String, Object> map);

        Flowable<String> confirmRelease(TreeMap<String,Object> map);

        Flowable<UploadFile> upLoadPayImg(RequestBody params);

    }
}
